home *** CD-ROM | disk | FTP | other *** search
- Path: Dortmund.Germany.EU.net!aisdo!aiscube!arndt
- From: arndt@aiscube.ais-gmbh.de (Arndt Schoenewald)
- Newsgroups: comp.lang.c++,gnu.g++.help,comp.unix.solaris
- Subject: Re: dealing without bool type
- Followup-To: comp.lang.c++,gnu.g++.help,comp.unix.solaris
- Date: 24 Mar 1996 20:19:19 GMT
- Organization: AIS GmbH, Universitaetsstr. 140, D-44799 Bochum, Germany
- Distribution: inet
- Message-ID: <4j4ao7$7t1@aiscube.ais-gmbh.de>
- References: <4j23nq$po7@shellx.best.com>
- NNTP-Posting-Host: aiscube.ais-gmbh.de
- X-Newsreader: TIN [version 1.2 PL2]
-
- Scott Murman (smurman@shellx.best.com) wrote:
- > I've used g++ for my compiler. I now have Sun's SC4.1 to use, but it
- > doesn't seem to have bool as a built-in data type. What are some good
- > ways to deal with this?
-
- As long as you don't need to overload on both bool and int, a
- `-Dbool=int -Dtrue=1 -Dfalse=0' will probably do it.
-
- Arndt
- --
- Arndt Schoenewald (arndt@ais-gmbh.de)
- Ostenhellweg 31, 44135 Dortmund, Germany
- Tel: +49 231 554045
- Fax: +49 231 556049
-